﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="SCGYList3.aspx.cs" Inherits="ServicesSheet_SCGYList3" %>

<%@ Register Src="../Control/DSelYearMonth.ascx" TagName="DSelYearMonth" TagPrefix="uc1" %>
<%@ Register src="../Control/SelUser.ascx" tagname="SelUser" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="Master" runat="server" autoapply="True" cachedataset="True"
        datamember="Services_SCGY" webdatasetid="WMaster">
    </infolight:webdatasource>
    <infolight:webdatasource id="wdsEmp" runat="server" cachedataset="True" selectalias="Usasdb"
        selectcommand="SELECT Services_SV_CarSubsidy.EmployeeId ,Employees.EmpName, Department.DepartmentName  &#13;&#10;FROM Services_SV_CarSubsidy INNER JOIN&#13;&#10;      Employees ON &#13;&#10;      Services_SV_CarSubsidy.EmployeeId = Employees.EmployeeID INNER JOIN&#13;&#10;      Department ON Employees.DepartmentId = Department.DepartmentId&#13;&#10;Order by Services_SV_CarSubsidy.EmployeeId">
    </infolight:webdatasource>
    <infolight:webnavigator id="WebNavigator1" runat="server" 
    bindingobject="wgvMaster" oncommand="WebNavigator1_Command" statusstrip="WebStatusStrip1"
        width="100%" cssclass="NavigatorBar" CtlHeight="25">
        <navcontrols>
                    <InfoLight:ControlItem ControlName="Apply" ControlText="郎" ControlType="Image" ControlVisible="False"
                        DisenableImageUrl="../image/uipics/apply3_C.gif" ImageUrl="../image/uipics/apply_C.gif"
                        MouseOverImageUrl="../image/uipics/apply2_C.gif" Size="48" />
                    <InfoLight:ControlItem ControlName="Abort" ControlText="斌" ControlType="Image" ControlVisible="False"
                        DisenableImageUrl="../image/uipics/abort3_C.gif" ImageUrl="../image/uipics/abort_C.gif"
                        MouseOverImageUrl="../image/uipics/abort2_C.gif" Size="48" />
                    <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="True"
                        ImageUrl="../image/uipics/query_C.gif" MouseOverImageUrl="../image/uipics/query2_C.gif"
                        Size="48" />
                    <InfoLight:ControlItem ControlName="Print" ControlText="ゴ" ControlType="Image" ControlVisible="True"
                        ImageUrl="../image/uipics/print_C.gif" MouseOverImageUrl="../image/uipics/print2_C.gif"
                        Size="48" />
                     <InfoLight:ControlItem ControlName="Export" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Export3_C.gif" ImageUrl="../Image/UIPics/Export_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Export2_C.gif" Size="48" />
                </navcontrols>
        <navstates>
                    <InfoLight:WebNavigatorStateItem StateText="Initial" />
                    <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                    <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                    <InfoLight:WebNavigatorStateItem StateText="Editing" />
                    <InfoLight:WebNavigatorStateItem StateText="Applying" />
                    <InfoLight:WebNavigatorStateItem StateText="Changing" />
                    <InfoLight:WebNavigatorStateItem StateText="Querying" />
                    <InfoLight:WebNavigatorStateItem StateText="Printing" />
                </navstates>
    </infolight:webnavigator>
    <table cellpadding="0" cellspacing="5" class="TbSearch">
        <tr>
            <td style="width: 120px">
                <asp:Label ID="Appid" runat="server" Text="私车公用申请单号:"></asp:Label>
            </td>
            <td style="width: 78px">
                <asp:TextBox ID="TextBox1" runat="server" Width="72px" Height="16px"></asp:TextBox>
            </td>
            <td style="width: 35px">
                <asp:Label ID="Label4" runat="server" Text="员工:" Width="32px"></asp:Label>
            </td>
            <td style="width: 32px">
                
                <uc2:SelUser ID="SelUser" runat="server" />
                
            </td>
            <td style="width: 36px;">
                &nbsp;<asp:Label ID="Label2" runat="server" Text="日期:"></asp:Label>
            </td>
            <td style="width: 34px">
                <uc1:DSelYearMonth ID="DSelYearMonth1" runat="server" />
            </td>
        </tr>
        <tr>
            <td style="height: 32px; width: 74px;" align="right">
                <asp:Label ID="Label3" runat="server" Text="财务登记:" Width="56px"></asp:Label>
            </td>
            <td style="height: 32px; width: 71px;">
                <asp:DropDownList ID="SelLock" runat="server">
                    <asp:ListItem Value="9" Selected="True">请选择</asp:ListItem>
                    <asp:ListItem Value="0">未登记</asp:ListItem>
                    <asp:ListItem Value="1">已登记</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td colspan="4" style="text-align: right">
                <span class="roundbtn">
                    <asp:LinkButton ID="Query" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查 询&nbsp;&nbsp;&nbsp;&nbsp;" OnClick="Query_Click"></asp:LinkButton>
                </span>&nbsp;&nbsp;&nbsp;&nbsp; <%--<span class="roundbtn">
                    <asp:LinkButton ID="btnClear" runat="server" Text=" 清 除 " OnClick="btnClear_Click"></asp:LinkButton>
                </span>&nbsp;&nbsp;&nbsp;&nbsp;--%>
            </td>
        </tr>
    </table>
    <infolight:webgridview id="wgvMaster" runat="server" aborticonurl="../Image/UIPics/Abort.gif"
        addiconurl="../Image/UIPics/Add.gif" applyiconurl="../Image/UIPics/Apply.gif"
        backcolor="White" bordercolor="White" borderstyle="Groove" borderwidth="2px"
        canceliconurl="../Image/UIPics/Cancel.gif" cellpadding="1" createinnernavigator="False"
        datasourceid="Master" forecolor="#333333" headerstylewrap="False" mouseoveraborticonurl="../Image/UIPics/Abort2.gif"
        mouseoveraddiconurl="../Image/UIPics/Add2.gif" mouseoverapplyiconurl="../Image/UIPics/Apply2.gif"
        mouseovercanceliconurl="../Image/UIPics/Cancel2.gif" mouseoverokiconurl="../Image/UIPics/OK2.gif"
        mouseoverqueryiconurl="../Image/UIPics/Query2.gif" okiconurl="../Image/UIPics/OK.gif"
        queryiconurl="../Image/UIPics/Query.gif" width="100%" PageSize="15">
        <pagersettings mode="NumericFirstLast" />
        <footerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
        <navcontrols>
                <InfoLight:ControlItem ControlName="Add" ControlText="add" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/add.gif" MouseOverImageUrl="../image/uipics/add2.gif"
                    Size="25" />
                <InfoLight:ControlItem ControlName="OK" ControlText="Insert" ControlType="Image"
                    ControlVisible="True" ImageUrl="../image/uipics/ok.gif" MouseOverImageUrl="../image/uipics/ok2.gif"
                    Size="25" />
                <InfoLight:ControlItem ControlName="Cancel" ControlText="cancel" ControlType="Image"
                    ControlVisible="True" ImageUrl="../image/uipics/cancel.gif" MouseOverImageUrl="../image/uipics/cancel2.gif"
                    Size="25" />
            </navcontrols>
        <rowstyle backcolor="#EFF3FB" />
        <editrowstyle backcolor="#2461BF" />
        <selectedrowstyle backcolor="#D1DDF1" font-bold="True" forecolor="#333333" />
        <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center" />
        <headerstyle backcolor="DeepSkyBlue" font-bold="True" forecolor="White" />
        <alternatingrowstyle backcolor="White" bordercolor="White" />
        <columns>
                <asp:TemplateField ShowHeader="False">
                    <edititemtemplate>
<asp:ImageButton id="ImageButton1" runat="server" Text="Update" __designer:wfdid="w27" CausesValidation="True" ImageUrl="~/Image/UIPics/OK.gif" CommandName="Update"></asp:ImageButton>&nbsp;<asp:ImageButton id="ImageButton2" runat="server" Text="Cancel" __designer:wfdid="w28" CausesValidation="False" ImageUrl="~/Image/UIPics/Cancel.gif" CommandName="Cancel"></asp:ImageButton> 
</edititemtemplate>
                    <headerstyle wrap="False" />
                    <itemtemplate>
<IMG style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" onclick="javascript:window.open('ViewSCGY.aspx?Ad=1&VT=9&Id=<%#Eval("Id") %>&Ed=<%#Eval("Locked") %>','open','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=yes,width=800px,height=450px');" alt="查看详细" src="../Image/UIPics/Select.gif" /> 
<asp:ImageButton id="ImageButton3" runat="server" Text="Edit" Visible='<%# (Eval("Locked")) %>' __designer:wfdid="w30" CausesValidation="False" ImageUrl="~/Image/UIPics/Edit.gif" CommandName="Edit"></asp:ImageButton>&nbsp; 
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="财务登记" SortExpression="Finance">
                    <edititemtemplate>
<asp:CheckBox id="CheckBox4" runat="server" __designer:wfdid="w25" Checked='<%# Bind("Finance") %>' Enabled='<%# (Eval("Locked")) %>'></asp:CheckBox> 
</edititemtemplate>
                    <itemstyle horizontalalign="Center" />
                    <itemtemplate>
<asp:CheckBox id="CheckBox4" runat="server" __designer:wfdid="w28" Checked='<%# Eval("Finance") %>' Enabled="False" ></asp:CheckBox> 
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="申请已锁定" SortExpression="Locked">
                    <itemstyle horizontalalign="Center" />
                    <itemtemplate>
<asp:CheckBox id="CheckBox3" runat="server" __designer:wfdid="w31" Checked='<%# Bind("Locked") %>' Enabled="False"></asp:CheckBox> 
</itemtemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Id" HeaderText="申请编码" ReadOnly="True" SortExpression="Id" />
                <asp:BoundField DataField="EmpName" HeaderText="员工名称" ReadOnly="True" SortExpression="EmpName" />
                <asp:BoundField DataField="DepartmentName" HeaderText="部门名称" ReadOnly="True" SortExpression="DepartmentName" />
                <asp:BoundField DataField="UDate" DataFormatString="{0:yy-MM-dd}" HeaderText="日期"
                    HtmlEncode="False" ReadOnly="True" SortExpression="UDate" />
                <asp:BoundField DataField="UseKil" HeaderText="使用公里数" ReadOnly="True" SortExpression="UseKil" />
                <asp:BoundField DataField="SubsidyMoney" HeaderText="补贴金额" ReadOnly="True" SortExpression="SubsidyMoney" />
                <asp:BoundField DataField="FlowFlagName" HeaderText="工作流标志" ReadOnly="True" SortExpression="FlowFlagName" />
            </columns>
    </infolight:webgridview>
    <asp:Label ID="Label1" runat="server" Font-Size="Medium" ForeColor="Red" Text="注意:私车公用申请表单被车辆调度确认前,无法进行财务登记操作!"
        Width="880px"></asp:Label>
</asp:Content>
